3.7 \(\int \frac {\cot ^3(x)}{a+a \csc (x)} \, dx\)

Optimal. Leaf size=16 \[ -\frac {\csc (x)}{a}-\frac {\log (\sin (x))}{a} \]

[Out]

-csc(x)/a-ln(sin(x))/a

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3879, 43} \[ -\frac {\csc (x)}{a}-\frac {\log (\sin (x))}{a} \]

Antiderivative was successfully verified.

[In]

Int[Cot[x]^3/(a + a*Csc[x]),x]

[Out]

-(Csc[x]/a) - Log[Sin[x]]/a

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 3879

Int[cot[(c_.) + (d_.)*(x_)]^(m_.)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n_.), x_Symbol] :> Dist[1/(a^(m - n
- 1)*b^n*d), Subst[Int[((a - b*x)^((m - 1)/2)*(a + b*x)^((m - 1)/2 + n))/x^(m + n), x], x, Sin[c + d*x]], x] /
; FreeQ[{a, b, c, d}, x] && IntegerQ[(m - 1)/2] && EqQ[a^2 - b^2, 0] && IntegerQ[n]

Rubi steps

\begin {align*} \int \frac {\cot ^3(x)}{a+a \csc (x)} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {a-a x}{x^2} \, dx,x,\sin (x)\right )}{a^2}\\ &=\frac {\operatorname {Subst}\left (\int \left (\frac {a}{x^2}-\frac {a}{x}\right ) \, dx,x,\sin (x)\right )}{a^2}\\ &=-\frac {\csc (x)}{a}-\frac {\log (\sin (x))}{a}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 11, normalized size = 0.69 \[ -\frac {\csc (x)+\log (\sin (x))}{a} \]

Antiderivative was successfully verified.

[In]

Integrate[Cot[x]^3/(a + a*Csc[x]),x]

[Out]

-((Csc[x] + Log[Sin[x]])/a)

________________________________________________________________________________________

fricas [A]  time = 0.60, size = 19, normalized size = 1.19 \[ -\frac {\log \left (\frac {1}{2} \, \sin \relax (x)\right ) \sin \relax (x) + 1}{a \sin \relax (x)} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(x)^3/(a+a*csc(x)),x, algorithm="fricas")

[Out]

-(log(1/2*sin(x))*sin(x) + 1)/(a*sin(x))

________________________________________________________________________________________

giac [A]  time = 0.57, size = 14, normalized size = 0.88 \[ -\frac {\frac {1}{\sin \relax (x)} + \log \left ({\left | \sin \relax (x) \right |}\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(x)^3/(a+a*csc(x)),x, algorithm="giac")

[Out]

-(1/sin(x) + log(abs(sin(x))))/a

________________________________________________________________________________________

maple [A]  time = 0.31, size = 16, normalized size = 1.00 \[ -\frac {\csc \relax (x )}{a}+\frac {\ln \left (\csc \relax (x )\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(x)^3/(a+a*csc(x)),x)

[Out]

-csc(x)/a+1/a*ln(csc(x))

________________________________________________________________________________________

maxima [A]  time = 0.32, size = 18, normalized size = 1.12 \[ -\frac {\log \left (\sin \relax (x)\right )}{a} - \frac {1}{a \sin \relax (x)} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(x)^3/(a+a*csc(x)),x, algorithm="maxima")

[Out]

-log(sin(x))/a - 1/(a*sin(x))

________________________________________________________________________________________

mupad [B]  time = 0.30, size = 36, normalized size = 2.25 \[ -\frac {\frac {\mathrm {tan}\left (\frac {x}{2}\right )}{2}-\ln \left ({\mathrm {tan}\left (\frac {x}{2}\right )}^2+1\right )+\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )\right )+\frac {1}{2\,\mathrm {tan}\left (\frac {x}{2}\right )}}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(x)^3/(a + a/sin(x)),x)

[Out]

-(tan(x/2)/2 - log(tan(x/2)^2 + 1) + log(tan(x/2)) + 1/(2*tan(x/2)))/a

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {\cot ^{3}{\relax (x )}}{\csc {\relax (x )} + 1}\, dx}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(x)**3/(a+a*csc(x)),x)

[Out]

Integral(cot(x)**3/(csc(x) + 1), x)/a

________________________________________________________________________________________